package com.syan.learn.optimization.ch02.flyweight;

public class FlyweightTest {

	public static void main(String[] args) {
		ReportManagerFactory reportManagerFactory = new ReportManagerFactory();
		IReportManager reportManager1 = reportManagerFactory.getEmployeeReportManager("A");
		System.out.println(reportManager1.createReport());
		IReportManager reportManager2 = reportManagerFactory.getFinancialReportManager("A");
		System.out.println(reportManager2.createReport());

	}

}
